package com.fanglin.information.dao;

import java.util.List;

import com.fanglin.core.dao.Dao;
import com.fanglin.core.vo.Filter;
import com.fanglin.information.po.MessagePO;
import com.fanglin.utils.Paging;

public interface MessageDao extends Dao<MessagePO> {
	// 分页查询
	public List<MessagePO> pageMessages(Paging paging, List<Filter> filters, String userId, int company);

	public List<MessagePO> queryMessageForUnreadByUserId(String userId, int company);

	// 获取用户信息总数
	public int queryMessageCount(int uid, int company);

	// 修改为未读的消息为已读
	public int updateMessageForRead(List<Integer> mids);

	// 修改
	public void updateApproveMsgSerial(String msgSerial);

	// 删除多条方法
	public int deleteMessageByIdAStatusAUnType(List<Integer> messageIds, short status, List<String> unTypes);

}
